<?php


namespace app\exception;


class LoginFailedException extends BaseException
{
    public $code = 400;
    public $message = 'login failed!';

    public static function nullUser() {
        $e = new LoginFailedException();
        $e->message = '用户名不存在';
        return $e;
    }

    public static function wrongPassword() {
        $e = new LoginFailedException();
        $e->message = '密码错误';
        return $e;
    }

}